import Cookies from 'js-cookie';
import { createStore } from "vuex";
import theme from '@/config/theme.ts';

const settings: any = createStore({
	state: {
		sidebar:{
			opened:!!+( Cookies.get('sidebarStatus') || 0 ), //导航菜单是否折叠
		},
		themeType: 'light', 			// 后台主题模式,默认是暗黑模式
		themeStyle: theme['light'], 	// 后台主题样式,默认是暗黑样式
	},
	mutations: {},
	actions: {},
});


export default settings;